<template>
  <el-submenu :index="fullPath" :popper-append-to-body="false">
    <template #title>
      <span>{{ item.name }}</span>
    </template>
    <slot />
  </el-submenu>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'VanSubMenu',
  props: {
    item: {
      type: Object,
      required: true
    },
    fullPath: {
      type: String,
      default: ''
    }
  },
  setup() {
    return {}
  }
})
</script>
